package ysm.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import ysm.entity.Tripartite;
import ysm.service.TripartiteService;

@RestController
@RequestMapping("/public")
public class TripartiteController {
	
	@Autowired
	private TripartiteService tripartiteSerice;
	
	@RequestMapping("/deleteTripartiteByPrimaryKey")
	public void deleteByPrimaryKey(Integer id) {
		tripartiteSerice.deleteByPrimaryKey(id);
	}

	@RequestMapping("/insertTripartite")
	public void insert(Tripartite record) {
		tripartiteSerice.insert(record);
	}

	@RequestMapping("/insertTripartiteSelective")
	public void insertSelective(Tripartite record) {
		tripartiteSerice.insertSelective(record);
	}

	@RequestMapping("/selectTripartiteByPrimaryKey")
    public Tripartite selectByPrimaryKey(Integer id) {
    	return tripartiteSerice.selectByPrimaryKey(id);
    }

	@RequestMapping("/updateTripartiteByPrimaryKeySelective")
    public void updateByPrimaryKeySelective(Tripartite record) {
    	tripartiteSerice.updateByPrimaryKeySelective(record);
    }

	@RequestMapping("/updateTripartiteByPrimaryKey")
    public void updateByPrimaryKey(Tripartite record) {
    	tripartiteSerice.updateByPrimaryKey(record);
    }
    
	@RequestMapping("/selectTripartiteByUid")
    public Tripartite selectByUid(Integer uid) {
    	return tripartiteSerice.selectByUid(uid);
    }
    
	@RequestMapping("/loadAllTripartite")
    public List loadAllTripartite() {
    	return tripartiteSerice.loadAllTripartite();
    }

}
